from django.contrib import admin

# Register your models here.
from django.contrib import admin

from booktest import models
from booktest.models import BookInfo,HeroInfo

#未加自定义的模型管理类
# admin.site.register(HeroInfo)

class BookInfoAdmin(admin.ModelAdmin):
    list_display = ['id','btitle','bpub_date']

class HeroInfoAdmin(admin.ModelAdmin):
    list_display = ['id', 'hname','hgender','hcomment']


#加上自定义的模型管理类，页面就会改变
admin.site.register(BookInfo, BookInfoAdmin)
admin.site.register(HeroInfo,HeroInfoAdmin)